const { baseModel } = require('./baseModel')
const mongoose = require('mongoose')
const TeaAndClassSchema = new mongoose.Schema({
    //教师id
    teaId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'Teacher',
        required:true
    },
    //班级id
    classId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'Class',
        required:true
    },
    ...baseModel
})

module.exports = TeaAndClassSchema